<?php
namespace BP\Frm;
require_once("BP/Difference/Handler/CommonUtils.php");
require_once("BP/Difference/Handler/WebContralBase.php");
class WF_CCBill_Admin extends WebContralBase {
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function MethodDoc_GetScript () 
	{
		$en = MethodFunc::constructor__String($this->getMyPK());
		$type = $this->GetRequestValInt("TypeOfFunc");
		if (($type == 0))
		{
			return $en->getMethodDoc_SQL();
		}
		if (($type == 1))
		{
			return $en->getMethodDoc_JavaScript();
		}
		if (($type == 2))
		{
			return $en->getMethodDoc_Url();
		}
		return "err@没有判断的类�?.";
	}
	public function MethodDoc_SaveScript () 
	{
		$en = MethodFunc::constructor__String($this->getMyPK());
		$type = $this->GetRequestValInt("TypeOfFunc");
		$doc = $this->GetRequestVal("doc");
		if (($type == 0))
		{
			$en->setMethodDoc_SQL($doc);
		}
		if (($type == 1))
		{
			$en->setMethodDoc_JavaScript($doc);
		}
		if (($type == 2))
		{
			$en->setMethodDoc_Url($doc);
		}
		$en->setMethodDocTypeOfFunc($type);
		$en->Update();
		return "保存成功.";
	}
	protected function DoDefaultMethod () 
	{
		switch ($this->getDoType()) {
			case "DtlFieldUp":
				return "执行成功.";
			default:
				break;
		}
		throw new \RuntimeException(((((("@标记[" . $this->getDoType()) . "]DoMethod=[") . $this->GetRequestVal("DoMethod")) . "]，没有找�?. @RowURL:") . $CommonUtils->getRequest()->getRequestURI()));
	}
}
?>
